/* 
 * 应用表单校验相关配置
 * 依赖：graceChecker.js 进行校验
 * 
 * 使用：引入该js到页面，let res = graceChecker.check({phoneNo:"",code:""},formRule.loginRule)
 */

export default {
	/* 用户登录 */
	loginRule: [
		{name: "username",checkType: "phoneno",checkRule: "",errorMsg: "手机号格式不正确"},
		{name: "password",checkType: "notnull",checkRule: "",errorMsg: "密码不能为空"},
	],
	
	/* 发送验证码验证手机号 */
	sendCodeRule: [
		{name: "username",checkType: "notnull",checkRule: "",errorMsg: "手机号不能为空"},
		{name: "username",checkType: "phoneno",checkRule: "",errorMsg: "手机号格式不正确"},
	],
	
	/* 验证码登录 */
	loginCodeRule: [
		{name: "username",checkType: "phoneno",checkRule: "",errorMsg: "手机号格式不正确"},
		{name: "code",checkType: "notnull",checkRule: "6",errorMsg: "验证码不能为空"},
	],
	
	/* 修改密码 */
	passWordRule: [
		{name: "oldPwd",checkType: "notnull",checkRule: "",errorMsg: "请输入旧密码"},
		{name: "newPwd01",checkType: "notnull",checkRule: "",errorMsg: "请输入新密码"},
		{name: "newPwd",checkType: "notnull",checkRule: "",errorMsg: "新密码不能为空"},
	],
	//添加新密码
	passWordRuleNew: [
		{name: "newPwd01",checkType: "notnull",checkRule: "",errorMsg: "请输入新密码"},
		{name: "newPwd",checkType: "notnull",checkRule: "",errorMsg: "新密码不能为空"},
	],
	/*增值贷公共*/
	zzdRule:[
		{name: "basicBorrowerName",checkType: "notnull",checkRule: "",errorMsg: "请输入申请人姓名"},
		{name: "basicBorrowerCard",checkType: "idcard",checkRule: "",errorMsg: "请输入身份证号码"},
		{name: "basicBorrowerPhone",checkType: "phoneno",checkRule: "",errorMsg: "请输入手机号码"},
		{name: "basicBorrowerAddress",checkType: "notnull",checkRule: "",errorMsg: "请输入申请人现住地址"},
		{name: "pledgeHouseDistrict",checkType: "notnull",checkRule: "",errorMsg: "请输入房产区域"},
		{name: "pledgeHouseName",checkType: "notnull",checkRule: "",errorMsg: "小区名字"}
	],
	/*增值贷已婚*/
	zzdRuleMat:[
		{name: "basicBorrowerMateName",checkType: "notnull",checkRule: "",errorMsg: "请输入配偶姓名"},
		{name: "basicBorrowerMateCard",checkType: "idcard",checkRule: "",errorMsg: "请输入配偶身份证号码"},
		{name: "basicBorrowerMatePhone",checkType: "phoneno",checkRule: "",errorMsg: "请输入配偶手机号码"},
	],
	//安居分公共部分
	ajfRule:[
		{name: "basicBorrowerName",checkType: "notnull",checkRule: "",errorMsg: "请输入申请人姓名"},
		{name: "basicBorrowerCard",checkType: "idcard",checkRule: "",errorMsg: "请输入身份证号码"},
		{name: "basicBorrowerPhone",checkType: "phoneno",checkRule: "",errorMsg: "请输入手机号码"},
		{name: "basicLoansMoney",checkType: "notnull",checkRule: "",errorMsg: "请输入申请金额"}
	],
	//安居分已婚
	ajfMate:[
		{name: "basicBorrowerMateName",checkType: "notnull",checkRule: "",errorMsg: "请输入配偶姓名"},
		{name: "basicBorrowerMateCard",checkType: "idcard",checkRule: "",errorMsg: "请输入配偶身份证号码"},
		{name: "basicBorrowerMatePhone",checkType: "phoneno",checkRule: "",errorMsg: "请输入配偶手机号码"},
	],
	//公积金
	accfundRule:[
		{name: "basicBorrowerName",checkType: "notnull",checkRule: "",errorMsg: "请输入申请人姓名"},
		{name: "basicBorrowerCard",checkType: "idcard",checkRule: "",errorMsg: "请输入身份证号码"},
		{name: "basicBorrowerPhone",checkType: "phoneno",checkRule: "",errorMsg: "请输入手机号码"},
		{name: "monthMoney",checkType: "notnull",checkRule: "",errorMsg: "请填写月缴金额"},
		{name: "acceptTime",checkType: "notnull",checkRule: "",errorMsg: "请选择受理时间"},
		{name: "agencyBeginTime",checkType: "notnull",checkRule: "",errorMsg: "请选择代缴开始时间"},
		{name: "agencyEndTime",checkType: "notnull",checkRule: "",errorMsg: "请选择代缴结束时间"},
	],
	//公积金有账户
	accfundRuleHas:[
		{name: "account",checkType: "notnull",checkRule: "",errorMsg: "请输入原公积金账户"},
		{name: "accountStatus",checkType: "notnull",checkRule: "",errorMsg: "请选择原公积金账号状态"},
	],
	//公积金没有账户
	accfundRuleNo:[
		{name: "bankType",checkType: "notnull",checkRule: "",errorMsg: "请选择银行"},
		{name: "bankNum",checkType: "notnull",checkRule: "",errorMsg: "请输入银行号码"},
	],
	//按揭赎楼公共部分
	ajslRule:[
		{name: "buyName",checkType: "notnull",checkRule: "",errorMsg: "请输入购房人姓名"},
		{name: "buyCard",checkType: "notnull",checkRule: "",errorMsg: "请输入购房人身份证号码"},
		{name: "buyCard",checkType: "idcard",checkRule: "",errorMsg: "请输入正确的购房人身份证号码"},
		{name: "buyPhone",checkType: "phoneno",checkRule: "",errorMsg: "请输入正确的购房人手机号码"},
		{name: "basicBorrowerName",checkType: "notnull",checkRule: "",errorMsg: "请输入售房人姓名"},
		{name: "basicBorrowerCard",checkType: "notnull",checkRule: "",errorMsg: "请输入售房人身份证号码"},
		{name: "basicBorrowerCard",checkType: "idcard",checkRule: "",errorMsg: "请输入正确的售房人身份证号码"},
		{name: "basicBorrowerPhone",checkType: "phoneno",checkRule: "",errorMsg: "请输售房人入手机号码"},
		{name: "pledgeName",checkType: "notnull",checkRule: "",errorMsg: "请输入抵押人姓名"},
		{name: "pledgeCard",checkType: "notnull",checkRule: "",errorMsg: "请输入抵押人身份证号码"},
		{name: "pledgeCard",checkType: "idcard",checkRule: "",errorMsg: "请输入正确的抵押人身份证号码"},
		{name: "pledgePhone",checkType: "phoneno",checkRule: "",errorMsg: "请输抵押入人手机号码"},
		{name: "pledgeHouseAddress",checkType: "notnull",checkRule: "",errorMsg: "请输不动产地址"},
		{name: "pledgeHouseNumber",checkType: "notnull",checkRule: "",errorMsg: "请输入产权号"},
		{name: "pledgeHouseDistrict",checkType: "notnull",checkRule: "",errorMsg: "请输所属区域"},
		{name: "pledgeHouseName",checkType: "notnull",checkRule: "",errorMsg: "请输入小区名字"},
		{name: "pledgeHouseArea",checkType: "notnull",checkRule: "",errorMsg: "请输入小区面积"},
		{name: "pledgeOneBalance",checkType: "notnull",checkRule: "",errorMsg: "请输抵押入成交价"},
		{name: "pledgeOneBank",checkType: "notnull",checkRule: "",errorMsg: "请输入贷款银行"},
		{name: "surplusMoney",checkType: "notnull",checkRule: "",errorMsg: "请输入余额"},
	],
	//按揭赎楼配偶
	ajslRuleMate:[
		{name: "basicBorrowerMateName",checkType: "notnull",checkRule: "",errorMsg: "请输入配偶姓名"},
		{name: "basicBorrowerMateCard",checkType: "idcard",checkRule: "",errorMsg: "请输入配偶身份证号码"},
		{name: "basicBorrowerMatePhone",checkType: "phoneno",checkRule: "",errorMsg: "请输入配偶手机号码"},
	],
	//法拍房
	fafRule:[
		{name: "basicBorrowerName",checkType: "notnull",checkRule: "",errorMsg: "请输入申请人姓名"},
		{name: "basicBorrowerCard",checkType: "idcard",checkRule: "",errorMsg: "请输入身份证号码"},
		{name: "basicBorrowerPhone",checkType: "phoneno",checkRule: "",errorMsg: "请输入手机号码"},
		{name: "basicBorrowerAddress",checkType: "notnull",checkRule: "",errorMsg: "请输入申请人现住地址"},
		{name: "acceptTime",checkType: "notnull",checkRule: "",errorMsg: "请选择受理时间"}
	],
}